package com.gable.exhibition.view;

import com.gable.common.util.StringUtil;

import java.util.List;

/**
 * Created by mj on 2018/2/8.
 */
public class ParameterView extends  ContractView{
    private Integer start;  //分页参数

    private Integer end;    //分页参数

    private String orderBy; //排序字段 asc desc

    private Long secondPartyId; //乙方ID

    private Integer remindDay;  //提醒时间段  计算值

    private Long userId;    //当前登录用户ID

    private Long hospitalId;    //医院ID

    private Long manufacturerId;    //厂商ID

    private Long maintainerId;      //维修商ID

    private Long supplierId;        //供应商ID

    private Long contractEstimateSendId;    //预计发货单ID

    private Long contractActualSendId;      //实际发货单ID

    private Long installId;     //安装单ID

    private Long contractId;        //合同ID

    private String contractName;    //合同名称

    private String contractNo;      //合同编号

    private String firstPartyName;  //甲方名称

    private String secondPartyName; //乙方名称

    private String startDate;       //时间筛选字段

    private String endDate;         //时间筛选字段

    private String allName;

    private List<String> maintainers;   //厂商下的维修商列表

    private Long serviceId;     //服务商ID

    private String deviceName;  //设备名称

    private List<Long> statusList;  //状态集

    private List<String> suppliers;    //厂商下的供应商列表

    /*根据医院ID、维修商名称查询维修商信息*/
    private Long serviceType;

    private String name;

    private String serviceContacts;

    private String servicePhone;
    /*根据医院ID、维修商名称查询维修商信息*/

    private Long projectChargePersonId; //工程师ID

    private String dispatchRemark;  //派工备注

    public String getDispatchRemark() {
        return dispatchRemark;
    }

    public void setDispatchRemark(String dispatchRemark) {
        this.dispatchRemark = dispatchRemark;
    }

    public String getAllName() {
        return allName;
    }

    public void setAllName(String allName) {
        this.allName = allName;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public String getFirstPartyName() {
        return firstPartyName;
    }

    public void setFirstPartyName(String firstPartyName) {
        this.firstPartyName = firstPartyName;
    }

    public String getSecondPartyName() {
        return secondPartyName;
    }

    public void setSecondPartyName(String secondPartyName) {
        this.secondPartyName = secondPartyName;
    }

    public Integer getStart() {
        if(start == null)
            return 0;
        return start;
    }

    public void setStart(Integer start) {
        this.start = start;
    }

    public Integer getEnd() {
        if(end == null || end == 0)
            return 10;
        return end;
    }

    public void setEnd(Integer end) {
        this.end = end;
    }

    public String getOrderBy() {
        if(StringUtil.isEmpty(orderBy))
            return "asc";
        return orderBy;
    }

    public void setOrderBy(String orderBy) {
        this.orderBy = orderBy;
    }

    public Long getSecondPartyId() {
        return secondPartyId;
    }

    public void setSecondPartyId(Long secondPartyId) {
        this.secondPartyId = secondPartyId;
    }

    public Integer getRemindDay() {
        return remindDay;
    }

    public void setRemindDay(Integer remindDay) {
        this.remindDay = remindDay;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getHospitalId() {
        return hospitalId;
    }

    public void setHospitalId(Long hospitalId) {
        this.hospitalId = hospitalId;
    }

    public Long getManufacturerId() {
        return manufacturerId;
    }

    public void setManufacturerId(Long manufacturerId) {
        this.manufacturerId = manufacturerId;
    }

    public Long getMaintainerId() {
        return maintainerId;
    }

    public void setMaintainerId(Long maintainerId) {
        this.maintainerId = maintainerId;
    }

    public Long getContractEstimateSendId() {
        return contractEstimateSendId;
    }

    public void setContractEstimateSendId(Long contractEstimateSendId) {
        this.contractEstimateSendId = contractEstimateSendId;
    }

    public Long getContractActualSendId() {
        return contractActualSendId;
    }

    public void setContractActualSendId(Long contractActualSendId) {
        this.contractActualSendId = contractActualSendId;
    }

    public Long getInstallId() {
        return installId;
    }

    public void setInstallId(Long installId) {
        this.installId = installId;
    }

    public Long getContractId() {
        return contractId;
    }

    public void setContractId(Long contractId) {
        this.contractId = contractId;
    }

    public String getContractName() {
        return contractName;
    }

    public void setContractName(String contractName) {
        this.contractName = contractName;
    }

    public String getContractNo() {
        return contractNo;
    }

    public void setContractNo(String contractNo) {
        this.contractNo = contractNo;
    }

    public List<String> getMaintainers() {
        return maintainers;
    }

    public void setMaintainers(List<String> maintainers) {
        this.maintainers = maintainers;
    }

    public Long getServiceId() {
        return serviceId;
    }

    public void setServiceId(Long serviceId) {
        this.serviceId = serviceId;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public List<Long> getStatusList() {
        return statusList;
    }

    public void setStatusList(List<Long> statusList) {
        this.statusList = statusList;
    }

    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    public List<String> getSuppliers() {
        return suppliers;
    }

    public void setSuppliers(List<String> suppliers) {
        this.suppliers = suppliers;
    }

    public Long getServiceType() {
        return serviceType;
    }

    public void setServiceType(Long serviceType) {
        this.serviceType = serviceType;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getServiceContacts() {
        return serviceContacts;
    }

    public void setServiceContacts(String serviceContacts) {
        this.serviceContacts = serviceContacts;
    }

    public String getServicePhone() {
        return servicePhone;
    }

    public void setServicePhone(String servicePhone) {
        this.servicePhone = servicePhone;
    }

    public Long getProjectChargePersonId() {
        return projectChargePersonId;
    }

    public void setProjectChargePersonId(Long projectChargePersonId) {
        this.projectChargePersonId = projectChargePersonId;
    }
}
